package com.ruoyi.business.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.business.domain.*;

import java.math.BigDecimal;

/**
 * @Author: jamnsin
 * @Date: 2022/6/10 20:11
 */
public interface IWalletService {

    JSONObject getWalletAccount(String custNo);

    JSONArray getWalletIncome();

    JSONArray getWalletExpend();

    void walletWithdraw(WalletWithdrawReq walletWithdrawReq);

    /**
     * 钱包还款接口（返回抵扣金额与钱包还款订单流水号）
     * @param walletRepayReq
     * @return
     */
    JSONObject walletRepayment(WalletRepayReq walletRepayReq);

    void orderApproval(WalletOrderVo walletOrder, String auditStatus);

    void updateWalletAccount(WalletAccountReq walletAccountReq);

    void initWalletAccount(String custNo);

    void updateWalletOrder(WalletOrderReq walletOrderReq);

    void blockWallet(String custNo, String walletLock);

    BigDecimal getSumAmountByFoundsType(String custNo, String fundsType);

    JSONObject getCustomersWithBalance();

}
